package vos;

import java.util.Date;

import enums.WdTaskStatus;

public class SellerWdTaskVo {
	
	public Long id;
	public String idStr;
	public String itemUrl;
	public String itemTitle;
	public String itemPic;
	public Long itemPrice;
	public Long totalShareCount;
	public Long baseCommission;
	public Long takeCount;
	public Long totalOrderCount;
	public Long sellOrderCount ;
	public Long cashback;
	public Date shareDeadline;
	public Date orderDeadline ;
	public String shareText ;
	public String shareImageUrls ;
	public String other;
	public WdTaskStatus status;
	public Date publishTime ;
	public Long sellerId;
	public String sellerNick;
	public Date createTime ;
	public Date approvalTime ;
	public String remark;
	public Long totalIngot;
	public Long totalPledge;
	public Long count;
	public Long finishedCount;
	public String statusTitle;
	public Long notTakenCount;
	public Long performingCount;
	public String taskId;
	
	public String getStatusTitle(){
		return status.title;
	}
	
	public Long getNotTakenCount(){
		return this.totalShareCount - this.takeCount;
	}
	
	public Long getPerformingCount(){
		return this.takeCount - this.finishedCount;
	}
	
	public String getTaskId(){
		return String.valueOf(id);
	}
	
	public void values(){
		this.idStr = String.valueOf(id);
	}
	
}
